<template>
  <router-view></router-view>
</template>
<script setup lang="ts">
// 页面加载设置全局颜色变量
import { onMounted, ref } from "vue";
import { useUser } from "@/store/modules/userInfo";
import { storeToRefs } from "pinia";
const userStore = useUser();
const changeColor = (color: any) => {
  userStore.changeColor(color);
};
const { colorActive } = storeToRefs(userStore);
const accentColor = ref(colorActive);
onMounted(() => {
  changeColor(accentColor.value);
});

</script>
<style scoped></style>
